Skip to content

Conversation

@DeagleGross
Copy link
Contributor

@DeagleGross DeagleGross commented Oct 27, 2025

Removing AddConcurrentWorkflow and AddSequentialWorkflow as per #1603 (comment)

@DeagleGross DeagleGross self-assigned this Oct 27, 2025
Copilot AI review requested due to automatic review settings October 27, 2025 14:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR simplifies workflow extension methods and adds overloads for hosting extensions to accept IHostedAgentBuilder parameters. The changes eliminate the AddConcurrentWorkflow and AddSequentialWorkflow convenience methods in favor of explicit workflow configuration, while enabling callers to pass agent builders directly to mapping methods instead of repeating agent names.

Key changes:

  • Removed AddConcurrentWorkflow and AddSequentialWorkflow extension methods
  • Added IHostedAgentBuilder overloads to MapA2A, MapOpenAIChatCompletions, and MapOpenAIResponses
  • Updated sample code to use explicit workflow configuration and new builder-based mapping methods

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
HostApplicationBuilderWorkflowExtensionsTests.cs Removed unit tests for deleted AddConcurrentWorkflow and AddSequentialWorkflow methods
HostApplicationBuilderWorkflowExtensions.cs Deleted AddConcurrentWorkflow and AddSequentialWorkflow methods and removed unused System.Collections.Generic import
EndpointRouteBuilderExtensions.Responses.cs Added IHostedAgentBuilder overloads for MapOpenAIResponses method
EndpointRouteBuilderExtensions.ChatCompletions.cs Added IHostedAgentBuilder overload for MapOpenAIChatCompletions and changed return type to IEndpointConventionBuilder
EndpointRouteBuilderExtensions.cs Added four new MapA2A overloads accepting IHostedAgentBuilder
Program.cs Updated sample to use explicit workflow configuration and new builder-based mapping methods

@DeagleGross DeagleGross enabled auto-merge October 27, 2025 14:46
Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks ok to me, though for the builder stuff I defer to @ReubenBond

@stephentoub stephentoub mentioned this pull request Nov 5, 2025
4 tasks
@DeagleGross DeagleGross changed the title .NET: IHostedAgentBuilder overloads for workflows; simplify workflow extensions .NET: Remove sequential\concurrent workflow extensions Nov 7, 2025
Copy link
Contributor

@javiercn javiercn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DeagleGross DeagleGross added this pull request to the merge queue Nov 7, 2025
github-merge-queue bot pushed a commit that referenced this pull request Nov 7, 2025
* remove non-standard workflow extensions, create overloads for IHostedAgentBuilder

* rework

* rollback extensions in a2a
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 7, 2025
@DeagleGross DeagleGross added this pull request to the merge queue Nov 7, 2025
Merged via the queue into main with commit b7cddaa Nov 7, 2025
14 checks passed
@crickman crickman deleted the dmkorolev/cleanup-workflows branch November 11, 2025 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants